﻿<%@ page language="C#" autoeventwireup="true" inherits="Default_Coupon, App_Web_e1jp1m1s" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="shortcut icon" href="../Images/favicon.ico" type="image/x-icon" />
    <%=MainCss%>
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/jquery.lazyload.min.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
    
    <style type="text/css">
        body{background:#F2F2F2}
        .item{height:80px; position:relative; border-bottom:solid 1px #eee; padding:15px 10px 10px 10px; margin:10px; background:#fff;}
        .yuan{height:60px; width:60px; color:#ff0000; font-size:25pt; font-weight:700; margin:10px; border-right:dashed 1px #eee}
        .yuan small{font-size:9pt; font-weight:normal;}
        .dot_l{width:16px; height:16px; background:#f2f2f2; border-radius:30px; left:-10px; top:50%; position:absolute; margin-top:-8px;}
        .dot_r{width:16px; height:16px; background:#f2f2f2; border-radius:30px; right:-10px; top:50%; position:absolute; margin-top:-8px;}
        .used{top:0px; right:0px; position:absolute;}
        .used img{width:75px; height:75px;}
    </style>
       
    <script type="text/javascript">

        $(window).scroll(function () {
            if ($(window).scrollTop() > 200) {
                $('#GoTop').show();
            }
            else {
                $('#GoTop').hide();
            }
        });

        $(document).ready(function () {
            $('#GoTop').click(function () { $('html, body').animate({ scrollTop: 0 }, 'slow'); });
        });

        function getCoupon(id, content)
        {
            document.getElementById('txtCouponID').value = id;
            document.getElementById('lblCouponTitle').innerText = content;
            document.getElementById('CouponPanel').style.display = '';
        }

    </script>
    
</head>

<body>
    
    <header>

        <div class="topbar">
            <a href="javascript:history.back(-1)" class="back_btn"><i class="icon iconfont">&#xf0115;</i></a>
            <a href="javascript:;" class="top_home"></a>
            <h1 class="page_title"><asp:Label ID="lblTitle" runat="server"></asp:Label></h1>
        </div>

    </header>
   
    <form id="form1" runat="server">

        <asp:ScriptManager id="ScriptManager1"  runat="server"></asp:ScriptManager>
    
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
            
                <div id="MyCoupon" runat="server" class="list" style="padding-top:0px;"></div>
                
                <div style="text-align:center"><img src="images/tj.png" style="width:100%" /></div>

                <div id="ListDiv" runat="server" class="list" style="padding-top:0px;"></div>
    
                <div id="CouponPanel" style="display:none;">
                    <div id="shut4" class="edit-shut" style="min-height:1000px"></div>
                    <div class="edit-wrap" style="top:150px; height:150px;">
                        <div id="title4" class="edit-title">领取优惠券</div>
                        <div class="edit-content" style="margin:0; padding:10px;">
                            <asp:TextBox ID="txtCouponID" runat="server" style="display:none;"></asp:TextBox>
                            <div style="text-align:center; padding:5px 0;">领取：<asp:Label ID="lblCouponTitle" runat="server"></asp:Label></div>
                        </div>
                        <div class="edit-button">
                            <asp:LinkButton ID="lnbGet" runat="server" class="add_cart" style="width:80px; line-height:30px; height:30px; margin:0; background:#EC6F61" OnClick="lnbGet_Click">领取</asp:LinkButton>&nbsp;
                            <a href="javascript:void(0);" onclick="document.getElementById('CouponPanel').style.display='none'" class="liji_buy" style="width:80px; line-height:30px; height:30px; margin:0; background:#999;">取消</a>
                        </div>
                    </div>
                </div>
         
            </ContentTemplate>
        </asp:UpdatePanel>
        
        <div id="attention-dialog" class="attention-layout"></div>

        <div id="GoTop"></div>
         
    </form>
 
</body>
</html>